package com.shuyun.hystrix.dynamic.archaius;

import com.netflix.config.ConfigurationManager;
import com.netflix.config.DynamicConfiguration;
import lombok.extern.slf4j.Slf4j;

/**
 * @description:
 * @author: shuai.chen@shuyun.com
 * @date: 2023/1/17 2:25 PM
 */
@Slf4j
public class HystrixHelper {

    public void installConfig(){
        DynamicConfiguration dynamicConfiguration = new DynamicConfiguration(new CustomCfgConfigurationSource(), new CustomCfgPollingScheduler());
        ConfigurationManager.install(dynamicConfiguration);
        log.info("installConfig finish ...");
    }

}
